package com.winter.mapper;

import com.winter.model.UserCompanyBean;
import com.winter.model.UserInfo;
import com.winter.model.vo.response.UserLoginResponseVo;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserInfoMapper {
    int deleteByPrimaryKey(Long custId);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Long custId);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKeyWithBLOBs(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    UserInfo checkPhone(@Param("phone") String phone);

    UserLoginResponseVo login(@Param("loginId") String loginId, @Param("password") String password);

    UserLoginResponseVo verificationLogin(@Param("loginId") String loginId);

    UserInfo selectByUserNo(@Param("createUser") String createUser);

    List<UserCompanyBean> finUserInfoList(@Param("orderBy") String orderBy, @Param("comClass") String comClass, @Param("comSubClass") String comSubClass, @Param("isInterMan") String isInterMan, @Param("datLevel") String datLevel,@Param("key") String key);

    UserCompanyBean getUserCom(@Param("id") Long id);

    String finSum(@Param("userNo") String userNo);

    String boneSum(@Param("userNo") String userNo);
}